package com.blue.mapper.system;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author nanjie.chen
 * Created on 2023/10/2
 */
@Mapper
public interface GenerateMapper {
    /**
     * 查询库中所有表信息
     * @return
     */
    List<Map<String, String>> queryList(@Param("tableName") String tableName);

    /**
     * 通过表名查询表信息
     * @param tableName
     * @return
     */
    Map<String, String> queryTable(@Param("tableName") String tableName);

    /**
     * 通过表名查询表列信息
     * @param tableName
     * @return
     */
    List<Map<String, String>> queryColumns(@Param("tableName") String tableName);
}
